import request from "@/utils/request";

// 培训列表信息
function getMonthList(params) {
  return request({
    url: `/systemj/information/PC/trainList`,
    method: "get",
    params: params,
  });
}

// 培训列表信息
function getTrainDetails(params) {
  return request({
    url: `/systemj/information/getTrainDetails`,
    method: "get",
    params: params,
  });
}

//获取用户信息
function getUserInfo(params) {
  return request({
    url: `/systemj/information/pc/getUserInfo`,
    method: "get",
    params: params,
  });
}

//保存用户信息
function signUp(data) {
  return request({
    url: `/systemj/signer/pc/signUp`,
    method: "post",
    data,
  });
}
//修改用户信息
function updateSign(data) {
  return request({
    url: `/systemj/signer/updateSign`,
    method: "put",
    data,
  });
}

// 用户费用信息
function signFees(params) {
  return request({
    url: `/systemj/signer/pc/signFees`,
    method: "get",
    params,
  });
}

// 生成订单
function saveOrder(data) {
  return request({
    url: `/systemj/order/pc/saveOrder`,
    method: "post",
    data,
  });
}

// 会员余额
function balance(params) {
  return request({
    url: `/systemj/member/editMemberCode/pcTrain`,
    method: "get",
    params,
  });
}

// 订单支付
function pay(data) {
  return request({
    url: `/systemj/order/pay/PcOrder`,
    method: "post",
    data,
  });
}

// 线下支付银行信息
function bankInfo(params) {
  return request({
    url: `/systemj/order/bankInfo`,
    method: "get",
    params,
  });
}

// 订单报项
function myTrains(params) {
  return request({
    url: `/systemj/signer/myTrains`,
    method: "get",
    params,
  });
}

// 订单详情
function getOrderDetail(param) {
  return request({
    url: "/systemj/order/getOrderDetail",
    method: "get",
    params: param,
  });
}

export {
  getMonthList,
  getTrainDetails,
  getUserInfo,
  signUp,
  signFees,
  updateSign,
  saveOrder,
  balance,
  pay,
  bankInfo,
  myTrains,
  getOrderDetail,
};
